package com.行为型模型.P责任链模式;

public class GroupLeader extends Handler {


    public GroupLeader() {
        super(Handler.NUM_1,Handler.NUM_3);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天," + leave.getContent() + "。");
        System.out.println("小组长审批：同意。");
    }
}
